package cn.stl.org.mapper;

import cn.stl.org.domain.Department;
import cn.stl.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface DepartmentMapper {
    void save(Department department);

    void  remove(Long id);

    void update(Department department);

    Department loadById(Long id);

    List<Department> loadAll();

    Long queryCount(DepartmentQuery departmentQuery);

    List<Department> queryData(DepartmentQuery departmentQuery);

}
